package com.spring.mybatis.dao;

import com.spring.mybatis.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface UserMapper {

	@Select("select * from t_user")
	public List<User> queryUser();

	@Insert("insert into t_user values(1,'zhangsan',23)")
	public void insert1();

	@Insert("insert into t_user values(2,'lisi',20)")
	public void insert2();

	@Insert("insert into t_user values(3,'wangwu',18)")
	public void insert3();

}
